package com.zmj.common.base;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * 用于在项目启动后加载业务数据
 *
 * @author zmj
 * @date 2021-08-26 14:48
 */

@Slf4j
@Component
@Order(value = 2)//执行顺序
public class StartupRunnerTwo implements CommandLineRunner {

    @Override
    public void run(String... args) {
        log.info("模拟项目启动加载数据。。。。StartupRunnerTwo");
    }
}
